<div class="maintop">当前位置：添加聊天室房间
    <a href="javascript:;" action="<?=$basepath?>" class="mainFrame button">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
</div>
<div class="main">
    <ul class="switchs">
        <li id="s1">基本参数</li>
    </ul>
    <form name="from_add" id="from_add" action="<?=$basepath?>_add_save"  method="POST" target="ajax" func="form_submit">
        <? $this->display('editor',array('textareaid'=>'hiddencontent','uploadbutton'=>'uploadbutton','inputid'=>'icon','loadjsandcss'=>true)); ?>
        <div style="display:none;" class="hiddencontentdiv"><textarea id="hiddencontent" name="hiddencontent"></textarea></div>
        <div class="info">
            <div id="infos1">
                <dl><dt>房间名称：</dt><dd><input type="text" name="name" class="int" value="" /></dd></dl>
                <dl><dt>房间简介：</dt><dd><input type="text" name="explain" class="int" value="" /></dd></dl>
                <dl><dt>房间图标：</dt><dd><input type="text" name="icon" class="wtxt" value="#" /></dd></dl>
                <dl><dt>用户发言：</dt><dd><select name="nosay">
                            <option value="0">正常</option>
                            <option value="1">禁言</option>
                        </select></dd><dd class="t">禁言状态只能发红包和抢红包，不能说话</dd></dl>
                <dl><dt>房间状态：</dt><dd><select name="state">
                            <option value="0">正常</option>
                            <option value="1">禁用</option>
                        </select></dd><dd class="t">禁用状态不显示</dd></dl>
                <dl><dt>游客进入：</dt><dd><select name="roomtype">
                            <option value="0">游客进入放行</option>
                            <option value="1">禁止游客进入</option>
                        </select></dd></dl>
                <dl><dt>仅限白名单：</dt><dd><select name="onlywhite">
                            <option value="0">不启用</option>
                            <option value="1">启用</option>
                        </select></dd></dl>
                <dl><dt>用户等级：</dt><dd><select name="userlevel">
                            <option value="0">不限用户等级</option>
                        </select></dd><dd class="t"> 以上用户等级可进</dd></dl>
                <dl><dt>代理等级：</dt><dd><select name="agentlevel">
                            <option value="0">不限代理等级</option>
                        </select></dd><dd class="t"> 以上代理等级的用户可进</dd></dl>
                <dl><dt>排序：</dt><dd><input type="text" name="sort" class="int" value="<?=$maxsort?>" /></dd></dl>
            </div>
            <div id="infos2" class="hide">
            </div>
            <div class="btndiv">
                <input type="submit" value="确认" class="btnbig confirm" />
                <input type="button" onclick="javascript:JumpMainFrame('<?=$basepath?>')" class="btnbig" value="取消" />
            </div>
        </div>
    </form>
    <div class="bottomline"></div>
</div>